<?php defined('SYSPATH') or die('No direct script access.');
 
abstract class Controller_GeneralClass extends Controller_Template {
 
    // Определяем шаблон по умолчанию
    public $template = 'mainview';
 
    public function before()// виконується автоматично
    {
        parent::before();
        
                        
        //$head-блок<head>
        $head = View::factory('mainviewhead');
        $head->title= 'our_shop';
        $head->description = 'сайт-магазин';
        $head->style = '/public/css/style';
        $this->template->head=$head;
        
        
        
        $leftmenu = Request::factory('leftmenu')->execute();
        $this->template->leftmenu=$leftmenu;
        
        
        $this->template->scripts = '';
        $this->template->content = '';
        
    }
 
} // End Common
